//
// Created by denglibin on 2021/4/10 0010.
//

#ifndef SDL_DEMO_MAIN_SCENE_H
#define SDL_DEMO_DRAW_H
#include "window.h"
#include "game.h"
/**
 * 绘制纹理
 * @param renderer
 * @param texture
 * @param srcRect
 * @param distRect
 */
void drawTexture(SDL_Renderer * renderer, SDL_Texture * texture,
                 const SDL_Rect* srcRect, const SDL_Rect* distRect);

/**
 * 绘制背景
 * @param game
 */
void drawBg(Background* bg, GameWindow * gameWindow,int spiritX);
/**
 * 绘制精灵
 * @param game
 */
 void drawSpirit(Game* game);
#endif //SDL_DEMO_MAIN_SCENE_H
